Method for proving digital assets of transaction platform

ABSTRACT

The present invention discloses a method for proving digital assets of a transaction platform. An asset transaction platform and a server are involved. The method for proving digital assets of the transaction platform comprises: step 1: taking snapshot of a user identity and a user assets amount of each of all users by the sever; step 2: exporting the snapshots of the user identity and the user assets amount into a user asset list; step 3: setting mathematical hash functions; step 4: generating a merkle tree by using a string combined hash value of each of the users as a leaf node, and storing the merkle tree; and step 5: verifying valid user provisions and the total amount of assets of all users on the transaction platform, and drawing a conclusion. By combining a mathematic algorithm and a computer, the present invention provides users with an entrusted method for verifying the valid user provisions and the total amount of the assets of users on the platform, while protecting the asset privacy of each of the users.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to Chinese Application No. 202010017576.4 filed Jan. 8, 2020. The contents from the above are hereby incorporated in their entirety by reference.

TECHNICAL FIELD

The present invention relates to the technical field of digital transaction, in particular to a method for proving digital assets of a transaction platform.

BACKGROUND

For various financing services related to digital assets, a service provider usually stores digital assets of a user with no authority. The assets of each user are recorded in a ledger in a centralized database. The total amount of assets owned by a user recorded in a centralized ledger is called the total amount of assets belonging to the user. Assets of users held by the service provider are called valid user provisions. For example, on a blockchain-based digital assets service platform, the total amount of assets displayed in each of all user accounts is the total amount of assets belonging to users, and the total amount of blockchain-based assets that the platform service provider stores and has the right to control in a blockchain network is the valid user provisions. Since the user provisions can be disposed with no authority by the service provider and are beyond the supervision of common users, it is possible that the service provider uses the user provisions without the permission of users, causing the situation in which the valid user provisions are less than the total amount of assets belonging to users. This results in users's distrust of the digital assets service provider. The service provider can eliminate doubts from users and gain users' trust by proving that the valid user provisions held by itself are not less than the total amount of assets belonging to users on the platform in an effective way.

SUMMARY OF THE INVENTION

To overcome the defects in the prior art, the present invention provides a method for providing digital assets. By combining a mathematic algorithm and a computer, the present application provides a user with an entrusted method for verifying the valid user provisions and the total amount of assets of the user on the platform, while protecting the assets privacy of each of the users, to resolve the problems in prior art.

The present invention is achieved through the following technical solution: A method for providing digital assets of a transaction platform is provided, wherein an asset transaction platform and a server are used. The method includes the following steps:

step 1: taking snapshot of a user identity and a user assets amount of each of all users, recorded by the asset transaction platform, by the server within a snapshot time;

step 2: exporting the snapshots of the user identity and the user assets amount into a user asset list;

step 3: setting mathematical hash functions, wherein each of the users corresponds to a mathematic hash function, and the mathematic hash function is used to calculate a string combined hash value of the user identity and the user assets amount or disclose the total amount of assets of each of the users and the valid user provisions of the transaction platform;

step 4: generating a merkle tree by using the string combined hash value of each of the users as a leaf node, and storing the merkle tree; and,

step 5: verifying the valid user provisions and the total amount of assets of all users on the transaction platform, and drawing a conclusion.

Further preferably, the user assets amount is the sum of similar assets in various accounts of a user on a service provider platform.

Further preferably, the leaf node formed by the string combined hash value of each of the users can be open to the public.

Further preferably, the snapshot time is any time provided by the server.

Further preferably, a third-party auditing body compares each piece of information in the user asset list with the leaf node open to the public to ensure consistency.

Further preferably, the method further includes step 6: supplying the account number of the valid user provisions held by a service provider to the third-party auditing body, comparing the valid user provisions held by the service provider with the sum of the total amount of assets owned each of all users, and drawing a conclusion by the third-body auditing body.

Further preferably, the user verifies own string combined hash value.

Beneficial Effects of the Invention

According to the present application, the user assets amount and the user information are exported into the user asset list; the string combined hash value of the user is used as the leaf node of the merkle tree; and the account assets hash value of each of the users is stored in the leaf node of the merkle tree through the merkle tree. A third-party financial auditing body audits the total amount of the assets of each of the users stored in the leaf node of the merkle tree, and reviews and verifies the valid user provisions held by the service provider. Finally, the third-party financial auditing body provides a written audit report and discloses the audit result to the public. At the same time, the merkle tree storing the assets hash values of all users is open to the public. Each of the users of the service provider can verify whether the amount of assets in its own account is accurately included in the merkle tree through mathematic algorithms. When it is not necessary to consider the assets amount-related privacy of each of the users, the audit link executed by the third-party financial auditing body can be omitted by a method of disclosing the assets amount of each of the users and the voucher of the valid provisions, and then users can perform audit and check by themselves. The present application is suitable for wide application.

DESCRIPTION OF THE DRAWINGS

FIG. 1 is a flowchart of the present application.

FIG. 2 is a flowchart of generating a merkle tree of four users according to Example 1.

DETAILED DESCRIPTION OF THE INVENTION

To clarify the technical characteristics of the present solution, the present application has been illustrated in detail through the following description with reference to the specific embodiments and attached drawings.

Example 1

As shown in FIG. 1-FIG. 2, the present example discloses two methods, i.e., which are used to provide a voucher of the total amount of assets of users held by a service provider and a voucher of valid user provisions, respectively. The account assets hash value of each of users is stored in a leaf node of a merkle tree through the merkle tree. The third-party financial auditing body audits the total amount of the assets of each of the users stored in the leaf node of the merkle tree, and reviews and verifies the valid user provisions held by the service provider. Finally, the third-party financial auditing body provides a written audit report and discloses the audit result to the public. At the same time, the merkle tree storing the assets hash values of all users is open to the public. Each of the users of the service provider can verify whether the amount of assets in its own account is accurately included in the merkle tree through mathematic algorithms. When it is not necessary to consider the assets amount privacy of each of the users, the audit link executed by the third-party financial auditing body can be omitted by a method of disclosing the assets amount of each of the users and the voucher of the valid provisions, and then users can perform audit and check by themselves.

A method for proving digital assets of a transaction platform is provided, wherein an asset transaction platform and a server are involved; the method includes the following steps:

step 1: taking snapshot of a user identity and a user assets amount of each of all users, recorded by the asset transaction platform, by the server within snapshot time;

step 2: exporting the snapshots of the user identity and the user assets amount into a user asset list;

step 3: setting mathematical hash functions, wherein each of the users corresponds to a mathematic hash function, and the mathematic hash function is used to calculate a string combined hash value of the user identity and the user assets amount;

step 4: generating a merkle tree by using the string combined hash value of each of the users as a leaf node, and storing the merkle tree; and,

step 5: providing the generated user asset list to a third-party auditing body, and performing verification and drawing a conclusion by the third-party auditing body.

Take four users an example. The string combined hash values of the users are formed into a leaf node and open to the public. The account numbers of the valid user provisions held by a service provider are provided to the third-party auditing body, and the third-party auditing body compares the valid user provisions held by the service provider with the sum of the total amount of assets owned by each of all users and draws a conclusion.

Example 2

Different from Example 1, the server publishes the total amount of assets of all users and the valid user provisions of the transaction platform, such that anyone can verify whether the provisions of the transaction platform are greater than the sum of assets of all users by himself/herself.

According to the method of the present application, two ways are adopted to provide a voucher of the total amount of assets of users held by a service provider and a voucher of valid user provisions. The account assets hash value of each of users is stored in a leaf node of a merkle tree through the merkle tree. The third-party financial auditing body audits the total amount of the assets of each of the users stored in the leaf node of the merkle tree, and reviews and verifies the valid user provisions held by the service provider. Finally, the third-party financial auditing body provides a written audit report and discloses the audit result to the public. At the same time, the merkle tree storing the assets hash values of all users is open to the public. Each of the users of the service provider can verify whether the amount of assets in its own account is accurately included in the merkle tree through mathematic algorithms. When it is not necessary to consider the assets amount privacy of each of the users, the audit link executed by the third-party financial auditing body can be omitted by a method of disclosing the assets amount of each of the users and the voucher of the valid provisions, so that anyone can perform verification by himself/herself. The present application helps users perform audit and check by themselves.

Matters which are not described in detail in the present application all belong to technologies well known to those skilled in the art. Finally, it should be noted that, the above embodiments are merely used to illustrate the technical solution of the present application, and are not intended to limit the present application. Even if preferred embodiments are used to describe the present application in further detail, an ordinarily skilled in the art shall understand that, the technical solution of the present application can still be modified or equivalently substituted. All modifications or equivalent institutions made within the spirit of the technical solution of the present application shall fall within the protective scope of the claims of the present application. 

What is claimed is:
 1. A method for proving digital assets of an asset transaction platform, the method comprising: identifying, by a server, all users on an asset transaction platform; generating, by the server, a snapshot for each of the identified users at a first time instant, each snapshot including a user identity and a user assets amount for the user at the first time instant, the user assets amount for each user at the first time instant being a total amount of digital assets held by the user on the asset transaction platform at the first time instant; generating, by the server, a user asset list for the first time instant, the user asset list for the first time instant including an entry for each of the snapshots of the user identity and the user assets amount generated by the server for the first time instant; transforming, by the server, each of the plurality of entries in the user asset list into a string combined hash value, each string combined has value generated by transforming one of the entries in the user asset list using a mathematic hash function; generating, by the server, a merkle tree for the plurality of string combined hash values for the first time instant, the merkle tree for the first time instant including a leaf node for each of the plurality of string combined hash values; and performing an audit process of the asset transaction platform for the first time instant, the audit process including: generating, for the first time instant, a valid user provision for the asset transaction platform, the valid user provision for the asset transaction platform for the first time instant being the total amount of digital assets held by the asset transaction platform at the first time instant; verifying the user identity and user assets amount of each user on the asset transaction platform for the first time instant, the verifying including: generating a first hash for each user on the asset transaction platform for the first time instant, each of the first hashes being a hash of the user identity and user assets amount for the user for the first time instant; and comparing each of the first hashes with the string combined hash values stored in the leaf nodes in the merkle tree; responsive to a determination that all of the first hashes match with the string combined hash values stored in the leaf nodes in the merkle tree: generating a first summation for the first time instant, the first summation for the first time instant being a summation of the user assets amount for all of the users for the first time instant; and comparing the first summation for the first time instant with the valid user provision for the asset transaction platform for the first time instant; responsive to a determination that the first summation for the first time instant is less than or equal to the valid user provision of the asset transaction platform for the first time instant: returning a result confirming the valid user provision of the asset transaction platform.
 2. The method for proving digital assets of a transaction platform according to claim 1, wherein the user assets amount is the sum of similar assets in various accounts of a user on a service provider platform.
 3. The method for proving digital assets of a transaction platform according to claim 1, wherein the leaf node formed by the string combined hash value of each of the users is capable of being open to the public.
 4. The method for proving digital assets of a transaction platform according to claim 1, wherein the first time instant is any time provided by the server.
 5. The method for proving digital assets of a transaction platform according to claim 1, wherein the audit process is performed by a third-party auditing body; and wherein the third-party auditing body compares each entry in the user asset list with the leaf node to ensure consistency.
 6. The method for proving digital assets of a transaction platform according to claim 1, wherein the user verifies own string combined hash value. 